﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LiteratureManage.Domain.Services
{
    using LiteratureManage.Domain.Models;
    using LiteratureManage.Domain.DataAccess;

    public interface ILiteratureService
    {
        Literature Get(int id);

        int Create(Literature model);

        void CreateAuthor(int literatureId, Author model);

        void Update(Literature model);

        void UpdateAuthor(int literatureId, Author model);

        void Delete(int id);

        void DeleteAuthor(int literatureId, int id);

        PagingResult<Literature> GetAll(int pageIndex, int pageSize);

        PagingResult<Literature> Search(int pageIndex, int pageSize, LiteratureSearchableTerm searchableTerm);
    }
}
